Spectroscopic orbits of two short-period early-type binaries using two-dimensional cross-correlations