```\nfunction min(int256 x, int256 y) internal pure returns (int256 z) {\n    return x <= y ? x : y;\n}\n\nfunction max(int256 x, int256 y) internal pure returns (int256 z) {\n    return x >= y ? x : y;\n}\n```\n