Binary Tree Maximum Path Sum in Java