Machine Learning for Reading Order Detection in Document Image Understanding