Extended SAM file parsing in ruby