Implementation of a simple ray tracer capable of rendering images of sphere and triangle primitives