add Depth of tree