getTreeFromArray..