starting kdtree