Adding support for AMAP objective function, fixing big bug in bar code
when aligning large numbers of sequences.