Modify Incremental hierarchical clustering source code