Made min/max inline and constexpr.