Fixed errors in MPI_Bcast and MPI_Barrier