Improve engine_estimate_nr_tasks()
It's currently bad at guessing when the tree is shallow.
It's also bad when the tree is deep as it overestimates what is needed.
It's currently bad at guessing when the tree is shallow.
It's also bad when the tree is deep as it overestimates what is needed.