Iterator Object

Implements an Iterator object to handle processing arrays using recursion. The iterator
takes a function as a parameter which handles the desired process for each item.
Adding some comments.