Preallocated outbut buffer to improve efficiency

Note that Octave does not support '~' for unused variables. 'IGNORED' is
used in such cases.