Store the maximum values of x over a simulation in the output range.
Calculate the running maximum over the course of the simulation. The output can be a range.
x is the number whos maximum is to be computed.
reset? is an optional boolean to reset the calculation.