High-performance Ray Tracing/Casting Algorithm