a simple ray tracer using C++