Fixed bug in main.pl that caused dramatic inefficiency.
Merge branch 'master' of https://github.com/edechter/GrammarInduction into prism
another pass on the draft