Two Algorithms for Fast Ray Tracing of Complex Scenes