Added max_depth to binarytree