Update NewtonSolver.java