Determine if Matrix is Diagonalizable from Rank | Linear Algebra Exercises