Balanced Tree Greedy strategy implemented