A vectorized traversal algorithm for ray tracing