Using new API of the hierarchical clustering library