Complete Trie Implementation