Changed martix representation to a maximum of 8 columns and rows

since latex takes only up to 10 columns.