Nc programming for cnc machine tools