Utility for command-line printing of n-ary trees