>>12476560Method1 will iterate through a fraction of the tree's nodes, and that fraction is best represented as log n. Since you're calling it n times from main, you get the nlogn.
Also, I may have made a mistake there. If method2 goes through all of the tree's nodes, then time complexity is nlogn + n.