Boyer Moore String Searching Algorithm in C++