Simulation of a transit system written in C++11