Replace minmax with extrema

This cleans up the Stats code to remove out-of-date references to minmax.