A race simulation between tortoise and hare in C++