Basic implementation of Enumerable#{min,max}