calculating PI value using Monte Carlo method