Support OP_MIN and OP_MAX

Add scripting support for OP_MIN and OP_MAX