I have been trying to understand how the BAM index works by reading the SAM specification (v1.4, the newest version) and even samtools' source code. However,...