implemented sendAndReceive_ghosts, fixed initAndSplit