Working on CreateTreeFromArray