"Depth first" carving optimization

@DanBrown, everyone,
Please have a look at "Depth-first" carving for text and smarter "outline" grouping
We’ve done some improvements in “Depth first” carving.