SAM to BAM