Added a RayBuffer class and ray caching for the parallel tracer