Modeling of traffic at a road crossing and optimization of waiting time of the vehicles | Synapse