The function identify_words can be improved when there are only two input lines: we can their alignment from single call of align_pairwise. Voting in this case makes no sense, perhaps its better to just take one of the outputs with no mixing and voting.