added Jacobi iteration