結果 : brute force pattern matching algorithm time complexity