I have a list of lists / defaultdict(list) where the entries (10M+) contain duplicate values, both within each list and across lists. What I\'d like to do is to convert this