kdtree assignment