結果 : naive string matching algorithm time complexity