Gauss-Newton method