private static void insertNode(Node node, String word) {
		char[] chars = word.toCharArray();
		int i = 0;
		Node fatherNode = node;
		for (; i < chars.length; i++) {
			int inx = Collections.binarySearch(fatherNode.next, new Node(
					chars[i], 1));
			fatherNode.counter++;
			if (inx < 0) {
				Node newNode = new Node(chars[i], 1);
				fatherNode.next.add(-inx - 1, newNode);
				fatherNode = fatherNode.next.get(-inx - 1);
				break;
			}
			fatherNode = fatherNode.next.get(inx);
		}
		if (i == chars.length) {
			fatherNode.counter++;
		}
		i++;

		for (; i < chars.length; i++) {
			Node newNode = new Node(chars[i], 1);
			fatherNode.next.add(newNode);
			fatherNode = fatherNode.next.get(0);
		}
	}