Add RangeIterator

Fixes #4.