Tree class now builds a tree for trees with one node only.