Compute Mahalanobis distance between a point and a distribution using its mean and covariance matrix.