delete kdtree to put in modules