khvmat function

Covariance matrix for the difference between two K-functions