add BM(Boyer-Moore) algorithm in string matching