Accelerating incremental gradient optimization with curvature information