Traffic Lights changing mechanism fixes

Change log:
Implemented the new TrafficLight changing mechanism in Runner.java;
Fixed bugs in the Map.GetInDir();
Optimized and Fixed bugs in Map.getTrafficDensity  
Fixed Bugs in Intersection.traceBack().

Traffic lights now change according to traffic density of the input roads.