Added Levenberg-Marquardt optimization option