added function to remove a word from the trie.