refined peak so that only points that show declines on both sides are considered peaks