結果 : z algorithm for pattern matching