Created an algorithm that zeros an element's corresponding row and column whenever a zero is found.