Text this: A Cooperative Trajectory Optimization Algorithm for Connected Vehicles in Merging Zones