Add trie structure