Modified Karp Function

I have fully converted the Karp Function to JAVA. However, since the
karp function has not been tested, I cannot be sure that it will
function correctly.
- I have also updated the code for the Hash Function.
- Added comments to all the variables

Currently working on the "Keys" file conversion now.