make code compatible with octave
modified README about support for GNU octave