Learning Artificial Neural Network Algorithm