Minimums and Maximums of Two Variable Functions