UPGMA only needs reference equality on its dendogram structures.