Added simple maskGenerator for OCTAVE/MATLAB