Free the memory allocated for the hash-keys;
Cleaned the code;
Moved the "sort -n" command in the same lines of ./karp-rabin calls.