Added Jacobi method algorithm