Dining Philosophers Solution in C++