solved, find a row and a column as reference, mark the rows and columns needed to be set to zero in that reference row and column