Raytracer: Code for CS410 assignment