all_pairs function

Create all possible pairs