Added the old bvh2 and bvh4 code back into the code base.

They're left out of the build for now, because they don't compile.

Also added a BitStack class.