Add Octave/Matlab implementation (untested with Matlab)

Signed-off-by: Ruben Merz <ruben.merz@ieee.org>