Jacobi method