add kdtree package