fixed null pointer exception when updating dendrogram icons
[bugfix] adjusted rand index for number of clusters higher than number of classes