int index(int row, int col)

Return index in storage for row, col value.

Source

int index(int row, int col) => (col * 4) + row;