A non-linear least squares minimizer