Use accumulate in findsplit.