Multithreaded ray tracer working