Implementação do paper: Revisiting dynamic programming for finding optimal subtrees in trees