add string and memory search functions

Using Boyer-Moore-Horspool.