Predictive Control For Motion Coordination Of Connected And Automated Vehicles