Curve Fitting Least Square Method