Complete link algorithm
fix of complete link
Centroid linkage algorithm + small refactoring