Calculating PI using MPI