added program implementing the cyk algorithm
only closures know about outside variables
replaced '|->'-syntax with closures