kernel_cov function

Calculate a kernel covariance matrix.