Cooperative signal control algorithm