Adding initial trie implementation and tests.