Gauss-Newton algorithm for solving non-linear non-linear explained