drafted kdtree main for test