Hierarchical clustering deterministic