Simple raytracer implementation in Scala