optimize when match: use MatchHandler in MyAhoCorasickEngine