Add minimum/maximumBy functions.