back propagation in NNs and RNNs ref: https://www.zybuluo.com/hanbingtao/note/476663 https://zybuluo.com/hanbingtao/note/541458