Tree of Problems: Improving structured problem solving with compositionality