KDTree Duplicate Checker