Use itertools to generate all pairs of sequences