Added encode table to Trie class