Recursive X-Y cut using bounding boxes of connected components | Synapse