ray tracer in C++