Ex4 Neural Network implementation in Octave