Implemented zeroing all the rows and columns for MxN matrix