ANN with forward propagation. Back propagation with error (layer bias dimension).