solution to Binary Tree Preorder Traversal