is_bad_read(sequence, qual) function