finshied the binary tree preorder travsal