What are CNC machines and how do they work?