my Boyer-Moore algorithm realization