Here's how an algorithm guides a medical decision