Simple ray tracer in C