Trie datastructure