CKY parser with fixes