A Sequential Algorithm for Jerk Limited Speed Planning