Trajectory Planning Using High Order Polynomials under Acceleration Constraint