initial implementation of PolynomialFit for leading edge fit