public static void main(String[] args) {
		ChordNetwork network = new ChordNetwork(12);
		Random rand = new Random();
		Set<Integer> gen = new LinkedHashSet<Integer>();
		List<ChordNode> nodes = new ArrayList<ChordNode>();
		gen.add(5);
		ChordNode firstNode = new ChordNodeImpl(5, network), node;
		firstNode.join(null);
		nodes.add(firstNode);
		while (gen.size() < 100) {
			Integer nodeId = rand.nextInt(network.getMaxSize()) + 1;
			if (gen.add(nodeId)) {
				node = new ChordNodeImpl(nodeId, network);
				node.join(firstNode);
				nodes.add(node);
			}
		}
		System.out.println("Nodes: " + gen + " added");
		List<Integer> hops = new ArrayList<Integer>();
		for (int i = 0; i < nodes.size(); i++) {
			for (int j = 0; j < nodes.size(); j++) {
				if (i != j)
					hops.add(nodes.get(i).sendMSG(nodes.get(j).getId(), "Servas"));
			}
		}
		
		/*
		 * If all 4096 nodes were active, the worst case for maximum would be 12 hops 
		 */
		System.out.println("Minimum: " + Collections.min(hops));
		System.out.println("Average: " + avg(hops));
		System.out.println("Maximum: " + Collections.max(hops));
	}