added clustering algorithm, no tree_merge yet