Joint approximate diagonalization of a set of square matrices
