Changed OffsetIterator to boost's transform_iterator