added examples for pre-order traversals

this closes #45.
Merge pull request #48 from drincruz/feature/docs/pre_order_examples

added examples for pre-order traversals