Removes duplicate lines during alignment. prints alignment vertically.

also uses Integer.MAX_VALUE for max number of interations