Levenberg-Marquardt algorithm. PR: ports/146683 Submitted by: Eijiro Shibusawa <ej-sib at ice.uec.ac.jp> Approved by: makc (co-mentor)