Added Monte Carlo algorithm