max depth of BST in java