Computes the insert size (or template length), and completes the tags @HD and @PG in the BAM/SAM header