almost completed kmer score code