Sub-String matching using Rabin-Karp algorithm a.k.a rolling hashes