Open MPI program to generate the value of pi