Application of Artificial Neural Networks in Handwritten Text Processing