code: public void put(double val) {
      min = val < min ? val : min;
      max = val > max ? val : max;
    }
docs: Process a single double value.
  
  If the new value is smaller than the current minimum, it will become the
  new minimum.
  
  If the new value is larger than the current maximum, it will become the new
  maximum.
  
  @param val New value