bugfixes hausdorff function