Add em2.pl with the second algorithm