function out = repeat(A)
 dim = size(A); rows = dim(1);
 columns = dim(2);
 ind = A(1,2);
 for i = 1:rows
     for j = 1:A(i,2)
         out(ind+j) = A(i,1);
         ind = ind + A(i,2);
     end;
 end;
 