added code  for thread safe operations
Merge branch 'master' of https://github.com/ccard/csci565Project2