Fast Pattern Matching