Curve Fitting Least Squares Method