I simplified HashTable so that the hash function only needs to be passed in at the time of initialization.