[Olena-patches] r3621: Add function to perform component tree computation until