semi-working hierarchical clustering