Modified GaussNewtonMethod.java