power of 2, balanced bst and fashion sort