single BM(Boyer-Moore) algorithm implement in C