[C] Track and restore min/max values on histogram.