bug found and fixed, can populate tree now
but for large n there is stack overflow AFTER running all iterations of worker