Modify BamAlign to output the alignment length