modified Find Peak Element