A round robin simulation written in C++