implemented boyer moore, but doesnt work correctly