Least Square Fitting Method