Improve logic of computing variant site based on cigar string

Add changes to how the postion of a variant based on a cigar string
is computed. Changes help to summarise deletion and insertion operations.