TrieStructure with different patterns