String matching algorithm using Rabin Karp