General Motors is using artificial intelligence to improve quality, from software inside vehicles to the factory floor.