implemented user space procedure `max' and `min'