update using the hashmap instead of an array for the bad
character(Horspool) table