Offline Handwriting Recognition with Multidimensional Recurrent Neural Networks