added greatest and lowest iterator functions