Using Rabin Karp hash for real time string search in large array