* add Thread function 'IsRoot' to check whether thread is root or not
* Mem Interface has 'memFreeAll' function which release all the resources occupied by thread
  - umem is freed before shmem
- cleanup