Implementing kmer matching