updated travelTime() and travelTimeRandom() methods to use Iterators for increased performance