* core, triedb/pathdb: calculate the size for batch pre-allocation * triedb/pathdb: address comment
This change removes the dependency from trie package to triedb package.