insert words in hash table