Bio-Inspired Cooperative Optimal Trajectory Planning For Autonomous Vehicles