Getting closer to a solution, but the elements are still printing out-of-order after a rebalance involving rotations