Add partition iterator.
Merge pull request #2 from dcjones/master

Add a partition iterator