Least Square Polynomial Fitting