add pthread.h to graingrowth_MC.cpp and several other changes. add nthread argv to update()