Optimizing the Layout of a Balanced Tree