[Olena-patches] olena-2.0-132-g81fe5b9 Add compute_tree_of_shapes algorithm.