implemention of Levenberg-Marquardt algorithm: distortion correction method in High-precision camera distortion measurements with a “calibration harp”, setction 6.c
used simpler formula for least squares fitting error using straight lines : Straight lines have to be straight, eq 15-20