Added temporary pseudocode for minVal() and maxVal()