pthreads work, need to figure out why it isn't sorting