Update treeMaxPathSum