add PiecewiseStochasticPolynomialFunction class