Find a unique number in an array using XOR