Update tree.rb

permit the use of a Proc to render each line of print_tree
example of use:
````
tree.root_node.print_tree 0, method(:print_node)
def print_node(node, prefix)
  # your code
end
````