Remove cmath from KDEKernel/PolynomialKernel