Dynamic Collaborative Driving in Intelligent Transportation Systems