Added a method to calculate the depth of the tree.
Added a method to calculate the depth of the tree.
Added tests to calculate the depth of the tree.