tree in C++ 

Calculate the maximum depth in Tree algorithm