Deep Neural Network Algorithm Explained