An initial Python implementation for the Rabin-Karp algorithm.
For some details on the algorithm check the Wikipedia page: http://en.wikipedia.org/wiki/Rabin%E2%80%93Karp_algorithm.
For more profound details check Karp, Richard M.; Rabin, Michael O. (March 1987). Efficient randomized pattern-matching algorithms: http://www.research.ibm.com/journal/rd/312/ibmrd3102P.pdf