Simple raytracer in C