Equalize the height of a set of random elements, without necessarily having a common parent.