adding new python code: algorithm s.t. if an elemet in an MxN matrix is 0, the entire row/ column is 0