Added implementation for iterate for issue #467.

Hi @dmarkov  @yegor256 ,

Can you make a code review of this pull request and make comments.

Best Regards,
Georgi Eftimov