Module pair_iter
core
Iterate through all the possible pairs in a vector.
There are (n choose 2) == n * (n - 1) / 2 possible combinations, where n is the the length of the vector.