Computer graphics ray tracing algorithm