Cruise Automation, which specialized in the development of software for self-driving vehicles, has just been bought by General Motors.