Dominant sets and hierarchical clustering