Initial implementation of Trie structure