Controlling A Platoon Of Vehicles With Distributed Collision Avoidance Capabilities