Artificial Intelligence and the Technological Singularity