finish kdtree and clean up repo