Convert given binary tree to sum tree