Extensions of Dynamic Programming for Element-based Trees (initiative project)