bugfix mahalanobis distance calculator (use inverse matrix = auto)