add tree traversal options. pre/post/level order