Implemented back prop for neural net