hehe, this sounds familiar, we answered this sort of thing somewhere, you probably could search the forums for it
anyway, you could try using max() to find the highest value in the array.
conversely you could have a variable that stores the current highest when you are creating the array, but that is messy and the other method can be faster.