get Row Major Index
The row major index is row(number of columns) + col + 1 Labeling starts at 1 and goes by row (across columns). For example for a 3 by 3 grid 4, 5, 6 7, 8, 9
Return
the row major index of the cell
Parameters
row
the row
col
the column