Generating all possible hash values
for ( var i = l ; i < s . length ; i ++ ) { hash = ( ( hash - pow_l * ( s [ i - l ] . charCodeAt ( 0 ) - 97 ) + 2 * mod ) * x + ( s [ i ] . charCodeAt ( 0 ) - 97 ) ) % mod ; result . add ( hash ) ; }