public static void main(String[] args) throws ClassNotFoundException,
			IOException {
		HashMap<String, ArrayList<Integer>> map = readUrls("UrlsMap");
		System.out.println(map.size());
		int num_segments = 5;
		ArrayList<Integer>[] list = new ArrayList[map.size() / num_segments];
		int top = 0;
		int cur = 0;
		File f = new File("UrlsSet");
		if (!f.isDirectory())
			f.mkdir();
		for (Entry<String, ArrayList<Integer>> e : map.entrySet()) {
			list[top++] = e.getValue();
			if (top == list.length) {
				writeSet("./UrlsSet/" + cur, list);
				cur++;
				top = 0;
				list = new ArrayList[map.size() / num_segments];
			}
		}
	}