iaa
made work, but runs into weird behavior when it encounters not enough items in each row/column.  (it needs to collapse them)

 Please enter the commit message for your changes. Lines starting
rk