add tree depth and helper methods
add tree depth and helper methods
add depth for trees and helper utils