Simulating discrete events in queuing network for serving customers in C++.