isDiag function

Is diagonal.