Arrangement for controlling the tools of a machine tool with program-controlled tools