add kdtree class