Implemented MPI_Scatter and MPI_Gather