cluster by dcor and class enumeration