結果 : z algorithm for string matching