peak_valleys: list[PeakValleyDto]
group_every_two = [peak_valleys[i:i + 2] for i in range(0, len(peak_valleys), 2)]