kdtree module for C++