Single Number II solved in O(n) time with O(n) memory using a hash table