[clustering.hierarchical] Class refactoring (issue #126)