add more kdtree functions
fits: allow overriding the class constructed