FindPeakElement.java updated