Added array max and min functions.

Separate versions for arrays of integers or doubles.  Note: it is the
max or min value that is returned, not its array position.