connect_pairs function

Connecting Possibly Overlapping Pairs Into a List of Paths