kdtree in repo rather than as submodule