practice implementing a hash table