added iterative loop to get the consensus for each sequence-pair.