Pairs Script

Script detailing pairs algorithm.