Implement DMAX and DSUM functions, following the pattern from DMIN. Refactored the D* function enum to have instances return the function implementation instances rather than using a case construct, now that Java 8 is required.