add column/row size to matrix