Raytracer in Scala