-fixed a bug in the Pthreads version that was generated by the prior changes
 to the model optimization procedure