Fixed order of adding to tree to produce correct height