public int addToArray(treeNode node, int[] array, int index) {
		int newIndex = index;

		if (node == null)
			return index;

		if (node.leftLeaf != null) {
			newIndex = addToArray(node.leftLeaf, array, index);
		}
		array[newIndex] = node.value;
		newIndex++;
		if (node.rightLeaf != null) {
			newIndex = addToArray(node.rightLeaf, array, newIndex);
		}
		return newIndex;
	}