Artificial intelligence and the two singularities. (2017)