fixed bug causing test 5 to fail
fixing inverted match for most search algorithms

the multipattern search still fails and I think to fix it will
require a refactor that I don't have time to do right now. Need
to move the if statements that check if the v flag is set out of
the search functions and into on_match