Ray tracer code for my master thesis