cov_mat function

Estimates covariance matrices used by Gaussian process optimisation