find the peak element that is greater than its neighbors