changed sam parsing with bettersam to bam parsing with bamtools c++