Variational Multistate-Ket Derivation of the Heisenberg Spin Hamiltonian