Made karp-rabin use normal ints.
Made hash_lookup take strings as input.

Also fixed some weird bug with string terminators.
Parameterised matching now working in stages.

Next task is period compression, which should be fine.