covMat function

covariance function