Balanced breadth-first recursion