% Duplicates the CI matrix for blocks that do not have classified neighbors

function partialList=createList(i,j,CI)

[a,b,c]=size(CI);

if ((i+1)<=a) % boundary checks
   w=CI(i+1,j,2);
else
   w=-1;
end

if ((i-1)>=1)
   x=CI(i-1,j,2);
else
   x=-1;
end

if ((j-1)>=1)
   y=CI(i,j-1,2);
else
   y=-1;
end


if (j+1)<=b
   z=CI(i,j+1,2);
else
   z=-1;
end

partialList=[x w y z];



