Add thread-safe binary tree implementation.

Chapter 30, exercise 2.

Check out the DOT export feature! :-)