Fixed 'every possible pairing in an array'