Determine if matrix A is diagonalizable