MINIMUM OF A THREE VARIABLE FUNCTION