code generating CYK parser. Needs to be called though