add O1 solution for set matrix zero