rank based Mahalanobis distances