Fixed error with track segment elevation extremes calculation

Fixed typo in track segment elevation extremes calculation.