implementation of the backpropagation algorithm for neural networks (hand-written digit recognition).