added monte carlo simulation to get pi