Convert a Context Free Grammar (CFG) to Chomsky Normal Form (CNF)