Implemented MPI_Allreduce