Modified the solution of Set Matrix Zeroes.