Replaced partial_{min,max} funcs with PartOrdPrim trait