// Finds the maximum value in a vector/array that is also unique.