Implemented MPI_Reduce