implement size limit for hierarchical clustering