binary-tree.cc: recursive and non-recursive tree traversal (pre, in, post)