Updated trie format and stack language
Further update to trie