function idx = predictKmeans(X,C)

Distm = zeros(size(X,1),size(C,1));

for k = 1:size(Distm,2)
        Distm(:,k) = sum(sqrt((X-repmat(C(k,:),[size(Distm,1),1])).^2),2);
    end

    [~,idx] = min(Distm,[],2);
