implemented iterator like xrange
Merge pull request #169 from kgentner/iterator

Iterator