Use worklist.empty() instead of checking size()
Compare the thread id for findPreviousID()
Extract the auto test directories to a txt file

Also add the test21 to the auto test directory.
Compare the pthread id while finding nested IDs
Refine the answer of the inst pthread for kmeans