addFactor can now also be used with a Iterator of the type InputIterator