Jacobi Iteration - Shift up and down
