Implement an in-place algorithm for setting zeroes for a matrix.