Iterators have been introduced in gillespie algorithm

Iterators have been introduced in gillespie algorithm