added some api in kdtree