Fixed the bases_match function for reverse complements