Refactor sam2mrf CIGAR parsing and alignment blocks printing.