Update Traffic Algorithm.java

This is a traffic algorithm to update database by taking values from sensor at peak hours. There is rotational updation of database as well.
It also include code to influence the timer value at the arrival of ambulance.