Calculate subsubtrees' sizes correctly and position all children