Fixed infinite loop in some grammars

Hi,
I came across your blog post on converting grammars to Chomsky Normal Form. I wanted to test some results I got by hand, but encountered an infinite loop where the script would infinitely push epsilons from one variable to another and back again. I also changed demo.cfg to demonstrate a grammar that uses this functionality.

Great work, this is an awesome script!