update create & build kdtree