Add class that remove rows and columns of null diagonal entries in A
matrix.