function s = checkSize(arch)
	s = 0;
	for i = 1:length(arch)-1,
		s += arch(i+1) * (arch(i)+1);
	end
end