Create Max and Min Depth of tree