CovarianceUpper function

Evaluate covariance over upper triangle of distance matrix