Shake Packing

Pack n unit squares (rotation allowed) into the smallest square by shaking the box.