ENH faster unique_labels for big sequences of sequences