Move trie to datastructures package.