1. A method of calculating a Hausdorff distance comprising: a. computing a plurality of distances from a first set of data points to a second set of data points; b. inputting the plurality of distances into two 2-Dimensional heaps wherein the first 2-Dimensional heap contains a first plurality of heaps and the second 2-Dimensional heap contains a second plurality of heaps; c. determining a minimum within each heap in the first plurality of heaps and the second plurality of heaps; d. determining a first maximum within the first 2-Dimensional heap and a second maximum within the second 2-Dimensional heap; and e. calculating the Hausdorff distance by determining the greater of the first maximum and the second maximum.