Algorithm beats docs at diagnosing heart attacks via EKG