Solves problem 5.

Introduces infinite_integer_iterator function.