Nc programming for cnc lathes