Stanford researchers built an algorithm to predict subtypes of Type 2 diabetes that works right from your home.