static LL groupInFixedSizeRows(L l, int rowSize) {
new LL matrix;
for (int i = 0; i < l(l); i += rowSize)
matrix.add(subList(l, i, i+rowSize));
ret matrix;
}
static LL groupInFixedSizeRows(A[] l, int rowSize) {
ret groupInFixedSizeRows(asList(l), rowSize);
}