small-tree drawing function