Two-step inertial algorithm