uniquely mapped kmers algorithm rewritten