Educational implementations of the CYK algorithm