pub fn pairwise<T: Copy>(items: &[T], reverse: bool) -> Vec<(T, T)>
pairwise: each item with the next one, the last with the first; in reverse order if reverse.
pairwise
reverse