Finished two level bvh

Well, it is actually a n-level bvh since we can freely mix bvh and other
primitives.

Detection of boxes has been also improved.