sampleCovMat function

Compute a sample covariance matrix.