fixed hierarchical clustering from code import