change cyk traceback from recursive to iterative due to problems with pythons call stack having only 1000 entries