max element in the unimodal array