Hausdorff Metric and its Applications