hierarchial clustering on cpp, clustering algorithms comparison