terminate matcher loop when match is found
Merge pull request #111 from kamilszymanski/fast_loop_termination

terminate matcher loop when match is found