Improving Multiple Sequence Alignments Using Information From Libraries of Optimal Pairwise Alignments