fixed up dK_dX in the exponential and Matern kerns