added some useful hashing functions. Rabin karps is almost implemented using bernstein hashing
rabin karp is implemented with bernstein hashing. Next will create an abstract class to replace the bernstein hashing. The bernstein class will implement the virtual methods of that class