You forgot to credit Gilbert and Mosteller who solved this problem back in 1966:
Mosteller, F., & Gilbert, J. P. (1966). Recognizing the maximum of a sequence. J. Amer. Stat. Assoc, 61(313), 35-73.

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.