[Moose-dev] TreeLayout algorithm