Class-Based Contextual Modeling for Handwritten Arabic Text Recognition | Synapse