Google has developed an artificial intelligence algorithm that can assess someone’s risk for heart disease by looking at their retinas.