This code uses the Monte Carlo method for estimation of PI