Kernel efficiency

Refactored the kernel evaluate functions to no longer use the cmath::pow method.  New implementation is more efficient for polynomial kernels with s > 1 and/or r > 1.