[new] converted hausdorff algorithm to library implementation