changed integrate_n_steps to use iterator
added times_iterator with tests