Merged 4 tree functions into one
Merged all tree functions.
Merged tree functions.