Create kdtree solution
Finish the kdtree