Approximates pi Using the Monte Carlo method