jacobi iteration corrected to transfer boundary values between iterations