Statistics for Computing Contour Trees for 2D Piecewise Polynomial Functions