-use row-major traversal when the number of columns is fixed and the number of rows is dynamic -other minor changes