added examples for pre-order traversals

this closes #45.