support for tets (knnsearch)