Parallel calculation of P using MPI I/O