x = [1,2,3,4;2,2,2,2;3,3,3,3]

n=10;
k = size(x,1);
r = size(x,2);
H = zeros(k,n*r);
H(:,1:r) = x;
s = bestBeamNeighbour(x)
for i = 1:n
    H(:,((i*r)+1):((i+1)*r)) = s;
    s = bestBeamNeighbour(s);
end

for j = 1:k
    f = s(j,:);
    F = generateConflMatrix(f);
    drawConflictMatrix(f,F,strcat({'Conflict Matrix for beam '},{num2str(j)},{' (init state = '},{num2str(x(j,:))},{' ) '}));
end
