A simple digit recognizer using octave and python