Four different types of pre-pack sorting. Rounding side lengths to power of two flag.