usually I set max to -32000 and walk through every array element... even though the way you have it is probably faster... although I don't think that speed is really a big factor in this situation...