Raytracing engine written to run on the CPU