subpart of computing the maximal clique
remove duplicates