A parser for CIGAR format alignments