added support for alignment with bwa mem.