Distributed optimal consensus of multiple double integrators under bounded velocity and acceleration