fixed merged read output in the reverse longer trim reverse routine, and fixed minor pthreads problem