Modification to Horspool Algorithm.