i mean globally because a max could be in a segmen...
# troubleshooting
d
i mean globally because a max could be in a segment and the min in another segment as i told you i need to keep the bigger max-min difference of the ranges