added thr_create and test.  real memory allocation mechanism should be added quickly