basic cky parser