Put everything in one for loop

Changed one of the inputs to a vector of rows/columns that need to be
removed