Matricies and orthonormal bases