Reimplementation in Mathematica of TINY_GSGP.py