Added iter_length helper function to determine the length of an iterator object.
Initial implementation of irep(). #32

* The unit tests are pretty much complete.

* The code for irep() is borrowed from irepeat().

* Next step is to finish implementation of irep() and irep_len().