Added an implementation of a stack to do the CIGAR output