Merge ranges