blocks for finding out the max/min of two numbers