boyer moore without the hashmap
updated doc