makeNewTree [make the structure of tree to be hierarichal]