One-shot distributed ridge regression in high dimensions