bug fix in Hierarchical Clusterer
Merge branch 'task/13239' of https://github.com/AleksandrFrolov/ylab into task/13239
merge with latest chages