Adding a variety of patterns relating to locks and barriers along with several debugging tools.
Merge pull request #3 from dclements/patterns

Adding a variety of patterns relating to locks and barriers along with several debugging tools.