Introduction to Pattern Matching (trie)