Use sphere_sample and sphere_sample_inverse in DirHist

The mapping they use isn't identical to what was there before, but
it's equivalent for our use.