kdtree class added