first version of hclust