MPI_Cart_shift
int MPI_Cart_shift(MPI_Comm, int, int, int *, int *);
Returns shifted source and destination ranks for a task.