rename min/max --> minimum/maximum where they are used for reduction
merge dh/minmax