fix one bug in Boyer-Moore algorithm implement