Exact Pattern Matching: the brute force approach