poly fit least squares