improve numerical stability

FCI is confirmed to be invariant with respect to rotation of degenerate orbitals..