*simplified filling of row, column and cell using single loop (2n^2 to n^2)