Multithreaded version added

Program now uses a variable number of threads to compute the rays of the scene.