Statistics for Text Line Segmentation by Adapted Water Flow Algorithm