long convert_kmer_to_index(char *str, long kmer, long error_pos);