Moved to C++ for threads I guess

We'll see what happens. If it becomes a huge problem I'll just use
pthreads, but I wanna try this out