documentation kdtree