Trie and Revesre Trie