Created class MonteCarloSimulator for the flow control. Time: 24s for 1000x 0.4