// treeArray, startNode, openNode
// startNode and openNode are optional
createTree(Tree, 0, 1);