Ray tracer in C#