Added mahalanobis divergence.