Add TreeSum solution