Add basic Boyer-Moore search algorithm.

Relates #45.
Add Knuth-Morris-Pratt substring search algorithm.

Relates #45.