Jacobi method seems not working