what does a cnc lathe machine do