Is there a way to use the trace of a matrix to find whether a set of matrices are orthogoal to one another?