implemented setPointer, getPointer, and remove in hash table