final version of montecarlo simulating of PI number