Գրեք սա: Computing downwards accumulations on trees quickly