Virtual Traffic Simulator for Connected and Automated Vehicles