pair_columns function

Pairs columns and prepares them for comparison.