Handwriting Recognition: State of the Art and Future Trends