Reorder merge code so that BAM gets translated before it is inserted into heap.
Create reverse translation table for merge region selection.