implementation of backprogagation algorithm for neural network learning