Raytracer in C++