REFACTOR: All of the Math.max(...) to new MaxDocValue() which does the work needed.