Updated some code in hash_kmer and update_kmer