Function iterativePolynomialBaseline