Implemented max of unimodal array in log n time.