Optimal lane change times and accelerations of autonomous and connected vehicles