function ovec = rearrg(ivec)
ltot = length(ivec);
ovec = [  ivec(floor((ltot+1)/2)+1:ltot) , ivec(1:floor(ltot/2)+1 ) ];

