Added comparator functions, tests, and integration for haversine lat/lng distance and jaccard distance