Handle parsing of ambiguous parse when they contain root rules, and a bit of tidy up
Few changes: 1) essentially put all the ambibuity minimisation all in one block ; 2) count no of alternatives for stats