binary tree MaxPathValSum and MinDepth