DIIS method implemented