Algorithms for building multiple sequence alignments and evolutionary trees