add findPeakElement