Convert a context-free grammar to CNF.