Nwise itertools

Related topic: Why is pairwise slower than zip?