CNC thread rolling machine