Given 2-D array X, a list of row indices rows and column indices cols, return X with those rows AND columns removed.
X
rows
cols
solve(...)