implemented MPI_Comm_size and MPI_Comm_rank functions.