moved tree-drawing stuff into scala-util