Detect the single number in an array of duplicates