From self-driving cars to Siri, a race is on to build more powerful AI, but some warn we could be programming our own extinction.