Get the unique number in memory

Q: How to get the unique number in memory when only one number is unique and all others are in pair. The data in pair are in same value?

A: Use the XNOR property the do accmumulation, the pair of data will be XNOR out as zero and lef the unique data.