GSA algorithm applied to electronic structure: Hartree–Fock–GSA method