Basic C++ raytracer in so