Added Covariance matrix

Added a covariance matrix that is used to rescale feature distances.