Implement tree output ([-d]).

Implement hierarchical sorting. Print ASCII art describing process
relations.

written by pedro@ and me