Basic neural network implementation for Octave