Statistics for Reference Text Line Identification Based on Water Flow Algorithm