
(Kind of) merges segments that lie on the same level.
ShrinkReprTMP.RdIterates through segments in segments, and if two segments have the same level,
then they are essentially merged with help of granges_obj. Actual procedure described
in for-loop below.
Removes the segments that were not merged.