Implemented an external Chomsky normal form of sorts, and added a few utility classes.