naive needle in a hay stack using rabin karp works