Ray tracer implemented in C++