implementation of Hausdorff Distance in MedianCuts getDistance (in progress)