Changed position, velocity and acceleration to std::vector.