Fixed Iterator interface, added reduce method for iterating through elements