Added DIIS for ground-state calculations