add TreeSum to check performance analysis