[algorithms.timestepping] add num_values argument