COMP JavaCC CYK Algorithm