https://9pdf.org/document/zlge5e6g-the-nonlinear-least-squares-problem.html