Adaptive Online Estimation of Piecewise Polynomial Trends