Foreward Nondeterministic Dawg Matching algorithm:

Wide Window Matching algorithm: