Trie mem usage implemented