Raytracing program in C using libX