program that simultaneously finds the mind and max of an array. Running time is O(floor of (3n/2) ).