Ensure that dense-packing places items correctly in masonry.

1
5
4
7
2
9
10
8
3
6