Structured estimation in healthcare and quantized matrix recovery