Simple raytracer in C++