finished forming the arrays of rows and columns for the special and general cases.