Text Block Detection for Document Segmentation