Added Jacobi scaling routine