Backpropagation refactoring.
Refactoring in backpropagation and direct connection history.