renamed newHashTable to initHashTable