min and max number comparison