Simple raytracer in Scala