make generation of unique PG IDs in bam header merging subquadratic