Data structure improves runtime performance of raytracing