Researchers tasked an algorithm with predicting cancer patients’ risk of dying. For some people, it was shockingly accurate