binary tree preorder traversal of java, morris traversal