Computes the element index according to the given column and row.
int getElementIndex(int column, int row ) { return column * 3 + row; }