Add unique unordered pairing function.