Added std::min for MAPQ genome values