Added Update method to Trie.