A method for determining the orbital elements of a spectroscopic binary, with application to γ Geminorum