Refactor trie implementation to a separate file