C++ program to shrink the SAM file after a read-mapping