Implementing unrestricted Hartree Fock