compact

fun compact()

Flushes, then compacts until no level is over its budget. Returns when the tree is in shape.