function out = insert1(a, A)
 if size(A) == 1
     out = {[a, A{1}]};
 else
     out = insert1(a, A(1:end-1));
     out{end+1} = [a, A(end)];
 end;