Hardware Implementation of The Ray Tracing Algorithm