Move minmax to range.hpp.