結果 : brute force algorithm for pattern matching