Fixes mappings in the reverse strand, and includes the beta version function to compute the mapping quality