Modified the Kmer class to use WordLength type and an enumeration for kmer direction instead of magic numbers.