Fixed a bug which I'd introduced in match_bitapOfTextAndPattern

Reintroduced tests for matching
Adding tests for patches

Refactored a few function names.
Fixed a bug (I created) in patch_splitMax()