code: public static MatrixAccumulator mkMinAccumulator() {
          return new MatrixAccumulator() {
              private double result = Double.POSITIVE_INFINITY;
  
              @Override
              public void update(int i, int j, double value) {
                  result = Math.min(result, value);
              }
  
              @Override
              public double accumulate() {
                  double value = result;
                  result = Double.POSITIVE_INFINITY;
                  return value;
              }
          };
      }
docs: Makes a minimum matrix accumulator that accumulates the minimum of matrix elements.
  
  @return a minimum vector accumulator