adding backPropagate functions to nn.py (Chap 4)