uses the least squares method to determine the best polynomial to fit a series of (x,y)-points