finish maximum depth of binary tree