- knox test using kdtrees