private int[] SetToArray(TreeSet<Integer> u) {
		ArrayList<Integer> result = new ArrayList<Integer>(u);
		int[] res = new int[result.size()];
		for(int i = 0;i < result.size();i++)
			res[i] = result.get(i);
		return res;
	}