I have a double loop that runs over a dataset comparing 1 row to the next on multiple matching condition. When a condition is met, the matched pair is added to the list. The cod