Implementing a map using a hash table