public Chunk[] split(int d) {
		int cutoff = (classes.length / d);
		if (cutoff <= 0) {
			cutoff = 1;
		}
		LinkedList<Chunk> chunks = new LinkedList<>();
		ArrayList<ClassNode> list = new ArrayList<>();
		for (ClassNode c : classes) {
			list.add(c);
			if (list.size() == cutoff) {
				chunks.add(new Chunk(list.toArray(new ClassNode[0])));
				list.clear();
			}
		}
		if(list.size() > 0) {
			chunks.add(new Chunk(list.toArray(new ClassNode[0])));
		}
		return chunks.toArray(new Chunk[0]);
	}