A generic online acceleration scheme for optimization algorithms via relaxation and inertia. (4th March 2019)