Effects of Connected Automated Vehicles on Traffic Flow