r854: improved the calculation of pa

and build pa filtering into BWA-MEM