Formula method for Mahalanobis distance.

Source rallfun first.