preorder traversal of binary tree