Using spatial data access structures for filtering nearest neighbor queries