結果 : space complexity of naive string matching algorithm