Fixed the issue with greedy resize in trie::insert