first impl. of class hcluster