First commit of GSoC, with Matlab code ported to Octave