done porting periodic boundary conditions to MPI