Second version of Binary Tree Preorder Traversal