private void findZerosAndClearEntries()
    {
        for (int i = 0; i < n; i++) {
            if (rowIsNotCleared(i)) {
                for (int j = 0; j < m; j++) {
                    if (rowIsNotCleared(i) && columnIsNotCleared(j) && entryIsZero(i, j))
                        clearRowAndColumn(i, j);
                }
            }
        }
    }