hausdorffDistance function added