sub min { $_[0] < $_[1] ? $_[0] : $_[1] }