int kdtree_knn(struct kdtree *t, double *c, int *uid, double *d, int k, int *skip)
int kdtree_insert(struct kdtree *t, double *c, int uid, int dc)
void kdtree_optimize(struct kdtree *t, int level)
int kdtree_traverse(struct kdtrav *trav, double *c, int *uid)
int kdtree_init_trav(struct kdtrav *trav, struct kdtree *tree)
int kdtree_remove(struct kdtree *t, double *c, int uid)
void kdtree_destroy(struct kdtree *t)
int kdtree_dnn(struct kdtree *t, double *c, int **puid, double **pd, double maxdist, int *skip)
struct kdtree * kdtree_create(char ndims, int *btol)
struct kdnode * curr_node
int kdtree_rnn(struct kdtree *t, double *c, int **puid, int *skip)
void kdtree_clear(struct kdtree *t)