iterator: Add `IteratorUtil::max_by/min_by` method