bt->tree; dm->dist_metric
Additional implementation notes in binary tree