DEV: add definition of second order derivative for polynomials