Cleaned up BVH code a bit.

Now using standard containers, and passing fewer parameters to the recursive
build function.