Hartree-fock method and variation of projected determinants