add the interate method for PreOrder Traverse