Added rays.

Added structs that describes rays and intersections. Also added a class
named ManagementRay which handles the rays.