printtree (Test)

    # File test.rb, line 10
     def Test::printtree tree
    		tree.traverse {|child, depth|
    			unless child.nil?
    			  	p = "-"
    				unless child.parent.nil?
    				  print "<"*depth if child == child.parent.left
    				  print ">"*depth if child == child.parent.right
    				end
    				print " #{child.value} (#{child.color})"
    				print " [#{child.parent.value}]" unless child.parent.nil?
    			end
    			puts ""
    		}
    	end