Back-propagating neural network written in octave/matlab