the fix consists in s/InputIterator/ForwardIterator/ and update the description of the input iterator