Optimal Alignment of Multiple Sequence Alignments