Implemented pthreads solution, it works, updated a small bug with references not compiling(prob forgot about c++11 stuff)