See notes for vector/matrix formulation of back propagation