Rabin Karp Java Implementation