Added ComparePairs methods. Added additional test for TwoPairs. Simplified main loop.