Fix size comparison and remove copy-and-pasted code

The standalone functions forward_hash, forward_hash_no_rc and reverse_hash seems to have been copied from KTable hash functions. Removed leftover from the copy-and-paste.

Change cast to the right type (based on the exception comment below the k-mer size must be <= 255, and so the size of an unsigned char).