Changed walk-inorder to be a generator