implement read group splitting for collating bam to fastq